import axios from '../utils/request';

/**
 * @description: 查询
 * @param {*} data
 * @return {*}
 */
 export function Query(params) {
    return axios({
        method: 'get',
        url: '/Menu/Query',
        params: params
    });
}

/**
 * @description: 添加菜单
 * @param {*} data
 * @return {*}
 */
 export function Create(data) {
    return axios({
        method: 'post',
        url: '/Menu/Create',
        data
    });
}

/**
 * @description: 更新菜单
 * @param {*} data
 * @return {*}
 */
 export function Update(data) {
    return axios({
        method: 'post',
        url: '/Menu/Update',
        data
    });
}

/**
 * @description: 删除
 * @param {*} params
 * @return {*}
 */
 export function Delete(params) {
    return axios({
        method: 'get',
        url: '/Menu/Delete',
        params
    });
}